﻿using System;

namespace HttpUploader4.demoSql2005.db
{
	public partial class ajax_del : System.Web.UI.Page
	{
		protected void Page_Load(object sender, EventArgs e)
        {
            string remoteHandle = Request.QueryString["callback"];
			string fid = Request.QueryString["fid"];
			string uid = Request.QueryString["uid"];
			int ret = 0;

			if (fid.Length > 0
				&& uid.Length > 0)
			{
				HttpUploaderDB db = new HttpUploaderDB();
				db.Delete(Convert.ToInt32(uid), Convert.ToInt32(fid));
				ret = 1;
            }
            Response.Write(remoteHandle + "(" + ret + ");");
		}
	}
}